//
//  AppointOrderDetailTableViewCell.m
//  customer
//
//  Created by Holothurian on 2018/11/5.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import "AppointOrderDetailTableViewCell.h"

@implementation AppointOrderDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        AutoWeakSelf
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _nameLabel = [[UILabel alloc]init];
        _nameLabel.textColor = [HSPublic colorWithHexString:@"333333"];
        _nameLabel.font = Font(14);
        [self.contentView addSubview:_nameLabel];
        [_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(weakSelf.contentView).offset(10);
            make.left.equalTo(weakSelf.contentView).offset(15);
            make.size.mas_equalTo(CGSizeMake(70, 30));
        }];
        
        _detailNameLabel = [[UILabel alloc]init];
        _detailNameLabel.font = Font28;
        _detailNameLabel.textColor = [HSPublic colorWithHexString:@"333333"];
        [self.contentView addSubview:_detailNameLabel];
        [_detailNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(weakSelf.contentView).offset(10);
            make.left.equalTo(weakSelf.nameLabel.mas_right).offset(10);
            make.right.equalTo(weakSelf.contentView).offset(-50);
            make.height.mas_offset(30);
        }];
        _unitLabel = [[UILabel alloc]init];
        _unitLabel.text = @"元";
        _unitLabel.textColor = [HSPublic colorWithHexString:@"333333"];
        _unitLabel.font = Font28;
        [self.contentView addSubview:_unitLabel];
        [_unitLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(weakSelf.contentView).offset(10);
            make.right.equalTo(weakSelf.contentView).offset(-15);
            make.size.mas_equalTo(CGSizeMake(30, 30));
        }];
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
